package com.letoken.platform.admin.service;

import com.letoken.platform.repo.admin.res.user.CaptchaRes;

/**
 * @author xiehui
 * @version 1.0
 * @date 2023-06-27 15:03
 */
public interface CaptchaService {

    /**
     * 生成验证码
     *
     * @return 验证码
     */
    CaptchaRes generateCaptcha();

    /**
     * 校验验证码
     *
     * @param uuid    uuid
     * @param captcha 验证码
     * @return 是否正确
     */
    boolean checkCaptcha(String uuid, String captcha);
}
